I. Start with CSS and Js. Front-end CSS stores all the styles on the website page. Page StyleCodeIt is best to write it here and implement it by calling. It cannot appear in makehtml. php.
Front-end JS mainly includes Ajax. JS, check_from.js, JS about jquery, Main. JS, and qqline. js. Ajax. js includes front-end business functions. js functions such as product search, order management, page Jump, and email submission. check_from.js include JS that f
() and pairs () functions draw a scatter chart by default, but you can specify other low-level drawing functions, such as Lines,panel.smooth, with one panel= parameter. Tsplot (x) draws time series graphs. Multiple parameters when Tsplot (x1, x2, ...) To draw multiple curves and automatically unify the range of curve values. If the parameter is not a time series object, the following subscript 1,2,3 is the horizontal coordinate drawing. 6. Qqnorm () normal QQ diagram and Qqplot () two overall Q
.
>qqnorm (Cars$speed)
>qqline (Cars$speed)
5.5.3 stem and leaf diagramUsing function stem () to draw stem and leaf plots in RStem (x,scale=1,width=80,atom=1e-08)where x is the data vector, the scale controls the length of the stem and leaf graph, width controls the drawing's widths, and atom is the tolerance.
> Set.seed (111)
> S=sample (cars$speed,25)
> Stem (s)
The decimal point was 1 digit (s) to the right
Statistical simulation of random number distributions1. What is the central limit theorem.
2. Two distribution simulation Center limit theorem (also known as the Laplace theorem)
#首先生成二项分布随机数
m=100;n=10;p=0.25
z
Using functions to simulate
sim.clt
Further understanding of 3.QQ graphs: normal probability graphsHistogram to judge whether random number obeys normal distribution, is to add normal density function curve in the graph to compare the judgmentThe idea of a normal probability graph is
= ' QQ plot ')
qqline (engel$foodexp, col= ' Red ', lwd=2)
The results are as follows:Below is the QQ chartThe results show that the variable y obviously does not obey the normal distribution, but it does not require Y to obey the normal distribution, and the regression of the number of digits is not sensitive to the anomaly value point. Let's continue, for comparison, we still do a mean regression, and then do a decimal regression.
#可以直接调用数据框里变量 Att
vectors, such as Qqplot (Rpois (50,5), Rnorm (50,5,1)), Qqplot ( DATA2,DATA1).Here we need to add a line to make it easy for us to judge that using the Abline () function can be done, but the function needs to specify the slope and intercept of the line, so we need to do some calculations such as:> Qqp> Abline (LM (qqp$x~qqp$y))First, when using Qqplot (), the returned result contains the X and Y values, which we named Qqp so that the LM () function is then used to extract the two values to fit
% confidence space5.ARIMA predictionsSteps:1. Ensure the timing is smooth2. Find a reasonable model (select a possible P-value or Q-value)3. Fitting the Model4. Evaluating models from the perspective of statistical assumptions and forecast accuracy5. ForecastingLibrary (tseries) plot (Nile)#1. Original sequence differential oncendiffs (Nile) dnilediff (Nile)#2. Post-Differential graphicsplot (Dnile) adf.test (dnile) Acf (dnile) PACF (dnile)# 3. Fitting the ModelFit5 )) fit5accuracy (FIT5)#4. Eva
naked eye, when the scattered points of the distribution closer to the straight line, the distribution of the sequence is closer to normal distribution. The command is as follows:Qqnorm (X3) qqline (X3)Map columnFinally, we introduce the rich map package features provided by R language, first we need to install the maps package, can be used to draw a beautiful map of the world for us to do social network analysis. Unfortunately, the package does not
sample data is approximate to the normal distribution.
Library (CAR)
#画出QQ图
PDF (qqplot.pdf)
qqnorm (data)
#画出与QQ图相对应的直线 (reference line)
qqline (data,col= "Red")
Dev.off ()
Guides: Add a straight line to the diagram, which is used for reference, to see if the scatter falls near the line. The line is determined by the two points of the One-fourth-point and Three-fourths-point points, the coordinates of the One-fourth-point coordinate are the One-fou
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.